<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
<link rel="shortcut icon" href="images/zk.ico" type="image/x-icon" />
<link rel="stylesheet" href="lib/layui/css/layui.css">
<link rel="stylesheet" href="css/login.css">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
	#seaInput{
		height: 30px;
	}
</style>
</head>
<body>
	<h4>医疗器械 展示 页面</h4>
	<div id="search">
		<form action="searchInstrument.do">
			<input type="text" id = "seaInput" name = "iname"><input type="submit" class="btn btn-info" value="搜索">
		</form>
	</div>
	<table class="table">
		<tr>
			<td>ID</td> 
			<td>器材</td>
			<td>价格</td>
			<td>库存</td>
			<td>厂商</td>
			<td></td>
		</tr>
		<c:forEach items="${inlist }" var="i" varStatus="status">
			<tr>
				<td>${i.iid}</td>
				<td>${i.iname}</td>
				<td>${i.iprice}</td>
				<td>${i.inum}</td>
 				<td>${i.supp.pname}</td>
 				<td><a href="deletInstrumentByState?iid=${i.iid }"><button type="button" class="btn btn-danger">删除</button></a></td>
 				<td><a href="updateInstrumentByIid?iid=${i.iid }"><button type="button" class="btn btn-info">修改</button></a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>